home *** CD-ROM | disk | FTP | other *** search
- 79
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- SetVolume
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows and Macintosh
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baSetVolume sets the volume level of the sound card for wave files and audio CD.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = baSetVolume( Device , Volume )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String, Integer.
- --- RECORDSEPARATOR ---
- Device is the device to change. Can be:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- "master"
- --- RECORDSEPARATOR ---
- sets the master volume
- --- RECORDSEPARATOR ---
- "wave"
- --- RECORDSEPARATOR ---
- sets the volume of wave and v
- --- RECORDSEPARATOR ---
- ideo files
- --- RECORDSEPARATOR ---
- "cd"
- --- RECORDSEPARATOR ---
- sets the volume of audio CD playback
- --- RECORDSEPARATOR ---
- "midi"
- --- RECORDSEPARATOR ---
- sets the volume of an external midi device
- --- RECORDSEPARATOR ---
- "synth"
- --- RECORDSEPARATOR ---
- sets the volume of the internal FM synthesizer
- --- RECORDSEPARATOR ---
- "master mute"
- --- RECORDSEPARATOR ---
- controls the master mute
- --- RECORDSEPARATOR ---
- "wave mute"
- --- RECORDSEPARATOR ---
- controls the wave mute
- --- RECORDSEPARATOR ---
- "cd mute"
- --- RECORDSEPARATOR ---
- controls the CD mute
- --- RECORDSEPARATOR ---
- "synth mute"
- --- RECORDSEPARATOR ---
- controls the built-in synthesizer mute
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Macintosh:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- "speakers"
- --- RECORDSEPARATOR ---
- sets the volume of external speakers
- --- RECORDSEPARATOR ---
- "wave"
- --- RECORDSEPARATOR ---
- sets the volume of the internal speaker
- --- RECORDSEPARATOR ---
- Volume is the volume level to set. The volume level can be between 0 (silence) and
- --- RECORDSEPARATOR ---
- 100 (maximum). For the mute devices, Volume can be either 1 for mute on, or 0 for
- --- RECORDSEPARATOR ---
- mute off.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Integer.
- --- RECORDSEPARATOR ---
- Returns 1 if successful, else 0.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- set OK = baSetVolume( "cd" , 50 )
- --- RECORDSEPARATOR ---
- set OK = baSetVolume( "master mute" , 1 )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- OK := baSetVolume( "cd" , 50 )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Not all sound cards in Windows support this function. Some cards will only support
- --- RECORDSEPARATOR ---
- some of the device types. They will return 0 if the function is not supported. The
- --- RECORDSEPARATOR ---
- function will set the volume on the first sound card found.
- --- RECORDSEPARATOR ---
- Some sound cards do not set the volume precisely. For example, if you set the
- --- RECORDSEPARATOR ---
- volume to 50, then call the baGetVolume function, it may return 48 or 49.
- --- RECORDSEPARATOR ---
- On
- --- RECORDSEPARATOR ---
- Macintosh
- --- RECORDSEPARATOR ---
- , you can also use "master" for "speakers".
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- See also:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baGetVolume